home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / bash_completion.d / bitkeeper < prev    next >
Text File  |  2009-04-02  |  418b  |  21 lines

  1. # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
  2. # ex: ts=8 sw=8 noet filetype=sh
  3. #
  4. # BitKeeper completion adapted from code by  Bart Trojanowski <bart@jukie.net>
  5.  
  6. _bk() {
  7.     local BKCMDS
  8.  
  9.     COMPREPLY=()
  10.     cur=`_get_cword`
  11.  
  12.     BKCMDS="$( bk help topics | grep '^  bk' | cut -d ' ' -f 4 | \
  13.            xargs echo )"
  14.  
  15.     COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) )
  16.     _filedir
  17.  
  18.     return 0
  19. }
  20. complete -F _bk bk
  21.